package net.sourceforge.wurfl.core.request.normalizer.specific;

import net.sourceforge.wurfl.core.request.normalizer.UserAgentNormalizer;

public class MSIENormalizer implements UserAgentNormalizer {

	/**
	 * Return MSIE String with the Major and Minor Version Only.
	 * @param userAgent
	 * @return String
	 */
	public String normalize(String userAgent) {
		return msieWithVersion(userAgent);
	}

	private String msieWithVersion(String userAgent) {
		int index = userAgent.indexOf("MSIE");
		return userAgent.substring(index, index+8);
	}
	
}
